package com.tq.util;

import java.util.List;

/**
 * @param <T> T：需要构建树结构的bean且要实现该接口
 * @author zy 2018-05-28
 * @Description:树节点TreeNode接口
 */
public interface TreeNode<T> {

    public Integer getId();

    public void setId(Integer id);

    public Integer getPid();

    public void setPid(Integer parentId);

    public String getName();

    public void setName(String name);

    public List<T> getChildren();

    public void setChildren(List<T> children);

}
